<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
    <style>
        span{
            display: block;
            width: 20px;
            height: 50px;
            background: red;
            position: fixed;
            top: 70px;
            left: 200px;
        }
    </style>
</head>
<body>
    <div id="app">
        <img :src="imgsrc[inum]">
        <span @click="next"></span>
    </div>
    <script>
        var app=new Vue({
            el:"#app",
            data:{
                inum:0,
                imgsrc:[
                "img/01.png",
                "img/02.png",
                "img/03.png",
                "img/04.png",
                "img/05.png",
                "img/06.png",
                "img/07.png",
                "img/08.png"
                ]
            },
            methods: {
                next:function(){
                    this.inum++
                    if(this.inum>7){
                        this.inum=0
                    }
                }
            },
        })
    </script>
</body>
</html>